import 'package:flutter/material.dart';
import 'package:flutter_bilibili/core/extension/int_extension.dart';

import '../shared/app_theme.dart';

Widget buildIconInfo(String icon, String text) {
  return Row(
    crossAxisAlignment: CrossAxisAlignment.center,
    children: [
      Image.asset(
        icon,
        width: 16.px,
        height: 16.px,
      ),
      Container(
        margin: EdgeInsets.only(left: 5.px),
        child: Text(
          text,
          style: TextStyle(
              color: HYAppTheme.norGrayColor,
              fontSize: HYAppTheme.xxSmallFontSize),
        ),
      )
    ],
  );
}
